from enum import Enum


class DataType(str, Enum):
    BYTE = 'BYTE'
    WORD = 'WORD'
    DWORD = 'DWORD'
    BCD = 'BCD'
    BYTES = 'BYTES'
    BIT = 'BIT'
    BITFIELD = 'BITFIELD'
    STRING = 'STRING'
    STRUCT = 'STRUCT'
    ARRAY = 'ARRAY'
    MAP = 'MAP'


class ProtocolError(Exception):
    pass


